package com.qqt.csr.file.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "MergeMultiUploadReq", description = "合并所有分段")
public class MergeMultiUploadReq implements Serializable {
    @Serial
    private static final long serialVersionUID = -2096773403653641434L;

    @Schema(description = "分段上传id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "分段上传id不能为空")
    @RequestKeyParam
    private String uploadId;

    @Schema(description = "上传的文件名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "上传的文件名不能为空")
    private String fileName;
}
